package com.bestsoft.flow.mapper;

import com.bestsoft.common.annotation.DataSource;
import com.bestsoft.common.enums.DataSourceType;
import com.bestsoft.flow.domain.vo.FlowOrderDtVo;
import io.lettuce.core.dynamic.annotation.Param;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

/**
 * 生产登记、运输信息Mapper接口
 * 
 * @author yuanna
 * @date 2023-08-29
 */
@Service
public interface FlowOrderDtVoMapper
{
    /**
     * 查询详细信息
     * 
     * @param qcode 二维码id
     * @return 详细信息
     */
    public List<Map<String,Object>> selectOrderDtVoByQcode(@Param("qcode") String qcode);
    /**
     * 查询详细信息erp
     *
     * @param qcode 二维码id
     * @return 详细信息
     */
    @DataSource(value = DataSourceType.ERP)
    public List<Map<String,Object>> selectOrderDtVoByQcodeErp(@Param("qcode") String qcode);
}
